package com.example.weblending.domain.statistics;

import com.example.weblending.vo.AnalyzeColumn;
import com.example.weblending.vo.CsvInputColumn;

public class HomeOwnership extends StatisticsBase{

    @Override
    public void init() {
        this.field.add(new StatisticsField("0"));
        this.field.add(new StatisticsField("1"));
    }

    @Override
    public void insert(AnalyzeColumn cleanColumn) {
        set(cleanColumn.getHomeOwnership(),cleanColumn.getIs(),cleanColumn);
    }

    @Override
    public void set(int num, float percent, CsvInputColumn cleanColumn){
        if (num==1){
            this.add(2,percent);
        }
        if (num==0){
            this.add(1,percent);
        }
    }
}
